const Mock = require('mockjs')

const data = Mock.mock({
  'items|2': [
    {
      id: '@id',
      title: '@sentence(10, 20)',
      'status|1': ['published', 'draft', 'deleted'],
      author: '@cname',
      display_time: '@datetime',
      pageviews: '@integer(300, 5000)',
      url: '@image(200x100)',
    },
  ],
})
module.exports = [
  {
    url: '/news/getList',
    type: 'get',
    response: (config) => {
      return {
        code: 20000,
        data: data,
      }
    },
  },
]
